package com.yjian.controller.bean;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Min;

/**
 * Created by xuxiaobao on 2017/9/29.
 */
@Data
public class ConsumeMemberNumberRequest {
    @NotEmpty(message = "请输入会员ID")
    @Length(max = 50, message = "请输入正确的会员ID")
    private String mid;

    @Min(value = 1, message = "请输入正确的次数")
    private Integer number;
}
